package com.opgea.crm.web.form;

import com.opgea.crm.domain.entities.AdditionalContact;
import com.opgea.crm.domain.entities.Lead;

public class DynamicContactForm {

	private String contactId;
	private String contactLeadId;
	private String contactFirstName;
	private String contactMiddleInitial;
	private String contactLastName;
	private String contactTitle;
	private String contactEmail;
	private String phoneWork;
	private String phoneHome;
	private String phoneMobile;
	private String phoneFax;
	
	public String getContactId() {
		return contactId;
	}
	public void setContactId(String contactId) {
		this.contactId = contactId;
	}
	public String getContactLeadId() {
		return contactLeadId;
	}
	public void setContactLeadId(String contactLeadId) {
		this.contactLeadId = contactLeadId;
	}
	public String getContactFirstName() {
		return contactFirstName;
	}
	public void setContactFirstName(String contactFirstName) {
		this.contactFirstName = contactFirstName;
	}
	public String getContactMiddleInitial() {
		return contactMiddleInitial;
	}
	public void setContactMiddleInitial(String contactMiddleInitial) {
		this.contactMiddleInitial = contactMiddleInitial;
	}
	public String getContactLastName() {
		return contactLastName;
	}
	public void setContactLastName(String contactLastName) {
		this.contactLastName = contactLastName;
	}
	public String getContactTitle() {
		return contactTitle;
	}
	public void setContactTitle(String contactTitle) {
		this.contactTitle = contactTitle;
	}
	public String getContactEmail() {
		return contactEmail;
	}
	public void setContactEmail(String contactEmail) {
		this.contactEmail = contactEmail;
	}
	

	public String getPhoneWork() {
		return phoneWork;
	}
	public void setPhoneWork(String phoneWork) {
		this.phoneWork = phoneWork;
	}
	public String getPhoneHome() {
		return phoneHome;
	}
	public void setPhoneHome(String phoneHome) {
		this.phoneHome = phoneHome;
	}
	public String getPhoneMobile() {
		return phoneMobile;
	}
	public void setPhoneMobile(String phoneMobile) {
		this.phoneMobile = phoneMobile;
	}
	public String getPhoneFax() {
		return phoneFax;
	}
	public void setPhoneFax(String phoneFax) {
		this.phoneFax = phoneFax;
	}
	public DynamicContactForm(){}
	
	public DynamicContactForm(AdditionalContact contact){
		Lead lead = contact.getLead();
		this.setContactLeadId(String.valueOf(lead.getId()));
		this.setContactId(String.valueOf(contact.getId()));
		this.setContactFirstName(contact.getFirstName());
		this.setContactMiddleInitial(contact.getMiddleInitial());
		this.setContactLastName(contact.getLastName());
		this.setContactTitle(contact.getTitle());
		this.setContactEmail(contact.getEmail());
		this.setPhoneWork(contact.getWorkPhone());
		this.setPhoneHome(contact.getHomePhone());
		this.setPhoneMobile(contact.getMobileNo());
		this.setPhoneFax(contact.getFax());
	}
	
}
